$OpenBSD: patch-bin_ant,v 1.9 2016/05/02 11:53:49 jasper Exp $
--- bin/ant.orig	Mon May  2 12:49:24 2016
+++ bin/ant	Mon May  2 12:49:45 2016
@@ -136,6 +136,8 @@ fi
 # set ANT_LIB location
 ANT_LIB="${ANT_HOME}/lib"
 
+JAVACMD=$(javaPathHelper -c apache-ant)
+
 if [ -z "$JAVACMD" ] ; then
   if [ -n "$JAVA_HOME"  ] ; then
     # IBM's JDK on AIX uses strange locations for the executables
